package com.crane.oss.sys.bean.resp;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;
import java.util.Map;


/**
 * 菜单对应的vue组件
 *
 * @author bealon
 * @email ccsu123456@qq.com
 * @date 2019年01月08日 14时49分19秒
 */
@Getter
@Setter
@ToString
public class MenuVueEleBean implements Comparable<MenuVueEleBean>, Serializable {
    private static final long serialVersionUID = 1L;

    private String path;
    private String component;
    private String redirect;
    private String name;
    private Integer orderNum;
    private Boolean hidden;
    private Integer type;
    private Map<String, Object> meta;

    private List<MenuVueEleBean> children;


    @Override
    public int compareTo(MenuVueEleBean o) {
        return this.getOrderNum() - o.getOrderNum();
    }


}
